package com.mark.job;/**
 * Created by Administrator on 2017/2/28.
 */

import com.mark.job.comlex.ComplexJobBean;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.quartz.QuartzJobBean;

/**
 * complex job detail config
 *
 * @author
 * @version 1.0
 * @create 2017-02-28
 */
public class ScheduledJob extends QuartzJobBean {
    @Autowired
    private ComplexJobBean complexJobBean;
    protected void executeInternal(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        complexJobBean.sendMessage();
    }
}
